package com.guigu.ssyx.product.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.atguigu.ssyx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * sku的库存历史记录
 * </p>
 *
 * @author liuyang
 * @since 2025-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sku_stock_history")
@ApiModel(value="SkuStockHistory对象", description="sku的库存历史记录")
public class SkuStockHistory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty(value = "销售价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "库存")
    @TableField("stock")
    private Integer stock;

    @ApiModelProperty(value = "销量")
    @TableField("sale")
    private Integer sale;

    @ApiModelProperty(value = "销售日期")
    @TableField("sale_date")
    private LocalDate saleDate;

    @ApiModelProperty(value = "仓库")
    @TableField("ware_id")
    private Long wareId;



    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    private Integer isDeleted;


}
